package net.pimpas.communication.serviceprovider.impl;

import net.pimpas.communication.serviceprovider.CommunicationServiceProvider;
import net.pimpas.communication.serviceprovider.CommunicationServiceProviderFactory;
import net.pimpas.framework.PimpasFramework;

public class CommunicationServiceProviderFactoryImpl implements CommunicationServiceProviderFactory {
	
	public static CommunicationServiceProvider getCommunicationServiceProvider(Object... params) {
		return new CommunicationServiceProviderFactoryImpl().getServiceProvider(params);
	}

	public CommunicationServiceProvider getServiceProvider(Object... params) {
		return (CommunicationServiceProvider) PimpasFramework.getCurrentInstance().getServiceProvider(CommunicationServiceProvider.class, params);
	}
}